package com.butterfly.domain.dao;

import java.util.List;

import com.butterfly.domain.entity.BaseEntity;

public interface GenericDAO<E extends BaseEntity> {
	
	void save(E entity);
	
	void update(E entity);
	
	void saveOrUpdate(E entity);
	
	void delete(E entity);
	
	E findById(long id);
	
	List<E> getAll();
	
	void evict(E entity);
	
	void refresh(E entity);
}
